<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="demo">
			<div v-bind:class="{active:isActive}">aaa</div>
			<div :style="styleObject">ccfdf</div>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#demo",
				data: {
					isActive: true,
					styleObject: {
					    color: 'red',
					    fontSize: '13px'
					  }
				}
			})
		</script>
		<style type="text/css">
		.active{background:#00FF00;}
		</style>
	</body>
</html>
